import request from '@/utils/request'

// 查询施工检查记录列表
export function listCheckRecord(query) {
  return request({
    url: '/check/checkRecord/list',
    method: 'get',
    params: query
  })
}

// 查询施工检查记录详细
export function getCheckRecord(checkRecordId) {
  return request({
    url: '/check/checkRecord/' + checkRecordId,
    method: 'get'
  })
}

// 新增施工检查记录
export function addCheckRecord(data) {
  return request({
    url: '/check/checkRecord',
    method: 'post',
    data: data
  })
}

// 修改施工检查记录
export function updateCheckRecord(data) {
  return request({
    url: '/check/checkRecord',
    method: 'put',
    data: data
  })
}

// 删除施工检查记录
export function delCheckRecord(checkRecordId) {
  return request({
    url: '/check/checkRecord/' + checkRecordId,
    method: 'delete'
  })
}

// 查询今日施工 不分页列表
export function selectTodayCheckTaskList(query) {
  return request({
    url: '/check/checkRecord/selectTodayCheckTaskList',
    method: 'get',
    params: query
  })
}
